package cn.bdqn.service.impl;

import cn.bdqn.pojo.Salary;
import cn.bdqn.mapper.SalaryMapper;
import cn.bdqn.service.SalaryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("salaryService")
public class SalaryServiceImpl implements SalaryService {
    @Resource
    private SalaryMapper salaryMapper;
    @Override
    public List<Salary> showAs() {
        List<Salary> salaryList=salaryMapper.showAlls();
        return salaryList;
    }

    @Override
    public int addS(Salary s) {
        int flag=salaryMapper.addSalary(s);
        return flag;
    }
}
